import 'package:oramemo/generated/json/base/json_field.dart';
import 'package:oramemo/generated/json/circle_user_entity.g.dart';
import 'dart:convert';
export 'package:oramemo/generated/json/circle_user_entity.g.dart';

@JsonSerializable()
class CircleUserEntity {
	String? msg;
	int? code;
	List<CircleUserData>? data;

	CircleUserEntity();

	factory CircleUserEntity.fromJson(Map<String, dynamic> json) => $CircleUserEntityFromJson(json);

	Map<String, dynamic> toJson() => $CircleUserEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CircleUserData {
	String? createTime;
	CircleUserDataParams? params;
	int? id;
	int? deviceId;
	int? userId;
	int? status;
	int? operId;
	String? terminalId;
	String? deviceName;
	int? deviceRelationId;
	int? devicePermission;
	CircleUserDataSysUser? sysUser;
	int? inviteId;

	CircleUserData();

	factory CircleUserData.fromJson(Map<String, dynamic> json) => $CircleUserDataFromJson(json);

	Map<String, dynamic> toJson() => $CircleUserDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CircleUserDataParams {


	CircleUserDataParams();

	factory CircleUserDataParams.fromJson(Map<String, dynamic> json) => $CircleUserDataParamsFromJson(json);

	Map<String, dynamic> toJson() => $CircleUserDataParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CircleUserDataSysUser {
	String? createBy;
	String? createTime;
	CircleUserDataSysUserParams? params;
	String? userType;
	int? userId;
	String? userName;
	String? nickName;
	String? email;
	String? phonenumber;
	String? sex;
	String? avatar;
	String? password;
	String? status;
	String? delFlag;
	String? loginIp;
	List<CircleUserDataSysUserRoles>? roles;
	bool? admin;

	CircleUserDataSysUser();

	factory CircleUserDataSysUser.fromJson(Map<String, dynamic> json) => $CircleUserDataSysUserFromJson(json);

	Map<String, dynamic> toJson() => $CircleUserDataSysUserToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CircleUserDataSysUserParams {


	CircleUserDataSysUserParams();

	factory CircleUserDataSysUserParams.fromJson(Map<String, dynamic> json) => $CircleUserDataSysUserParamsFromJson(json);

	Map<String, dynamic> toJson() => $CircleUserDataSysUserParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CircleUserDataSysUserRoles {
	CircleUserDataSysUserRolesParams? params;
	int? roleId;
	String? roleName;
	String? roleKey;
	String? roleSort;
	String? dataScope;
	bool? menuCheckStrictly;
	bool? deptCheckStrictly;
	String? status;
	bool? flag;
	bool? admin;

	CircleUserDataSysUserRoles();

	factory CircleUserDataSysUserRoles.fromJson(Map<String, dynamic> json) => $CircleUserDataSysUserRolesFromJson(json);

	Map<String, dynamic> toJson() => $CircleUserDataSysUserRolesToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CircleUserDataSysUserRolesParams {


	CircleUserDataSysUserRolesParams();

	factory CircleUserDataSysUserRolesParams.fromJson(Map<String, dynamic> json) => $CircleUserDataSysUserRolesParamsFromJson(json);

	Map<String, dynamic> toJson() => $CircleUserDataSysUserRolesParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}